package com.yht.redbook.gateway.enums;

import com.yht.framework.common.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 网关异常枚举
 */
@Getter
@AllArgsConstructor
public enum ResponseCodeEnum implements BaseExceptionInterface {
    // -----------------------通用异常状态码------------------------
    SYSTEM_ERROR("500", "系统繁忙，请稍后再试..."),
    UNAUTHORIZED("401", "权限不足...");

    // -----------------------业务异常状态码------------------------

    // 异常码
    private final String errorCode;
    // 异常信息
    private final String errorMessage;

}
